package com.shop.member.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.shop.member.dao.MemberBlackDAO;
import com.shop.member.vo.MemberVO;

@Service
public class MemberBlackServiceImpl implements MemberBlackService {

	@Autowired
	private MemberBlackDAO dao;
	
	@Override
	public List<MemberVO.MemberBlackItem> listMember() {
		return dao.listMember();
	}
	
	@Override
	public int isUserCnt(String id , String pw) {
		
		return dao.isUserCnt(id, pw);
	}
	
	@Override
	public int addMember(MemberVO.MemberBlackItem memberItem) {
		// TODO Auto-generated method stub
		return dao.addMember(memberItem);
	}
	
	@Override
	public MemberVO.MemberBlackItem getMember(String seq) {
		return dao.getMember(seq);
	}

	@Override
	public int updateMember(MemberVO.MemberBlackItem memberItem) {
		return dao.updateMember(memberItem);
	}
	
	@Override
	public int deleteMember(String seq) {
		return dao.deleteMember(seq);
	}
}
